from logicaltool.BaseTools.file_tools import FileTools

filetools = FileTools()

filetools.file_add_set([r'C:\Users\xuzhu\Desktop\article.txt'], filetools.inputobj1)
filetools.file_add_set([r'C:\Users\xuzhu\Desktop\articlenew.txt'], filetools.inputobj2)
filetools.inputobj3 = filetools.file_compare()
with open(r"C:\Users\xuzhu\Desktop\compare.txt", mode="w", encoding="utf-8") as f:
    for line in filetools.inputobj3:
        line = line.strip()
        f.write(line + "\n")
